<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> 
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/WEB-INF/tld/waybillStatus.tld" prefix="ws" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>到货预报运单</title>
		<link rel="stylesheet" type="text/css" href="btn_class.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/style.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/desktop.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/ext-patch.css" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

		<script type="text/javascript">
		<%String uId = (String) session.getAttribute("Uid");
			if (uId == null || uId.equals("null")) {%>
			window.parent.location.href = 'index.jsp';
		<%}%>

			
		function deleteWaybill(wbId){
			var flag = window.confirm("确定要删除吗?");  
			if(!flag) return; 
			var f = document.forms["waybillForm"];
			f.action = "waybill!deleteWaybillById.do?wbId="+wbId+"&userFlag=user";
			f.submit(); 
		}
		</script>
		<style type="text/css">
			.showValue6
			{
				color : #00309c;
			} 
			.bm
			{
				color : #0b5199;
				font-size : 12px;
				font-weight : bold;
			}
   		</style>
 
	</head>

	
<body style="background:white"> 
	<div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen8" style="mozuserselect: none; khtmluserselect: none;" unselectable="on">
		<span class="x-panel-header-text" >到货预报列表</span>
	</div>
	
	<form name="waybillForm" method="post">
	<table width="100%" border="0" cellSpacing="3" cellPadding="3">
		<tr><td align="center" bgColor="#ffffff">		
			<table width="100%" style="border-bottom: #c2cbec 1px solid; border-left: #c2cbec 1px solid; border-top: #c2cbec 1px solid; border-right: #c2cbec 1px solid;" bgColor="#fafafa" border="0" cellSpacing="0" cellPadding="0">
			 	<tr align="center">
			 	
			 		<td width="12%" height="28" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>订单编号</b></td>
			 		<!-- 显示提交者的姓名  和 唯一标示符 -->
			 		<td width="10%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>仓库</b></td>
			 		<td width="10%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>唯一标示符</b></td>
			 		<td width="12%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>美国快递号</b></td>
			 		<td width="10%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>重量(Lbs)</b></td>	
			 		<td width="15%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>当前状态</b></td>
			 		<td width="15%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>提交日期</b></td>
			 		<td width="15%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>操作</b></td>
			 	</tr>
			 	<s:iterator id="wb" value="forestList">
			 	<tr align="center" class="showValue6" style="line-height: 120%;">
			 		<td height="26" style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 			<s:property value="#wb.wbId"/>&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 				<s:property value="#wb.wbArea"/>&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 				<s:property value="#wb.Uid"/>&nbsp;
			 		</td>
			 			<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 				<s:property value="#wb.wbUps"/>&nbsp;
			 		</td>
			 			<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 				<s:property value="#wb.wbEnterWeight"/>&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 			<b>	 <ws:translateStatus enStatus="${wb.wbStatus}"></ws:translateStatus></b>&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 				<s:property value="#wb.wbForecastStatusTime"/>&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;" >
			 			<a class="bm" href="waybill!approvalWaybillA.do?wbId=<s:property value="#wb.wbId"/>&status=forecastStatus">审批</a>
			 			&nbsp;
			 		</td>
			 	</tr>
			 </s:iterator>
			 </table>
			</td>
		</tr>
	
		 
		 </table>
          <!--  </form>--> 
           
    
		 </form>
    </body> 
</html>
